package com.cdtye.itps.cms.controller.direction;

import com.cdtye.common.webcore.web.AjaxJson;
import com.cdtye.itps.cms.dao.direction.vo.JcDirectionVo;
import com.cdtye.itps.cms.service.direction.JcDirectionService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api("行别 前端控制器")
@RestController
@RequestMapping("/direction")
public class JcDirectionController {
    @Autowired
    private JcDirectionService modelService;

    @GetMapping("/findAll")
    public AjaxJson findAll(){
        return AjaxJson.success(modelService.findAll());
    }

    @GetMapping("/getList")
    public AjaxJson getList(JcDirectionVo vo){
        return AjaxJson.success(modelService.getList(vo));
    }

    @GetMapping("/findPage")
    public AjaxJson findPage(JcDirectionVo vo){
        return AjaxJson.success(modelService.findPage(vo));
    }
}
